var medialModel = new Starcor.S67.MVC.Model("media_library");
medialModel.query=function(params){
    NBOSS.ajax_v2(params,'/api/statistics/index.php?m=k1_b_1',function(data){
        if (data.code=='0'){
            medialModel.data=data.data;
        }else{
            medialModel.data = {};
            window.top.NBOSS.Alert('错误',data.reason);
        }
        medialModel.disEvent('query', medialModel.data);
    });
};

medialModel.mediaDetail=function(params){

    NBOSS.ajax_v2(params,'/api/statistics/index.php?m=k1_b_3',function(data){
        if (data.code=='0'){
            medialModel.mediadata=data;
        }else{
            medialModel.mediadata = {};
            window.top.NBOSS.Alert('错误',data.reason);
        }
        medialModel.disEvent('mediaDetail', medialModel.mediadata);
    });
};


	